using System;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;

public class LeftOpen : MonoBehaviour, IInteractable
{

    public void InteractAction()
    {
        if (!transform.parent.GetComponent<Door>().trapDoor)
        {
            if (transform.parent.GetComponent<Door>().leftDoor)
                transform.parent.gameObject.SetActive(false);
            else Debug.Log("做不到");
        }
    }
}
